package com.mercury.pattern._02_factory._factory;

public abstract class Pizz {
    String name;

    abstract void prepare();

    void bake(){
        System.out.println(name + "烘焙");
    }
    void cut(){
        System.out.println(name + "切割");
    }
    void box(){
        System.out.println(name + "打包");
    }

    void setName(String name){
        this.name = name;
    }
}
